<?
    my $action = $request->get("action", "none");
    my $bug_id = $request->get("bug_id", "-1");

    if($action eq "resolve") {
        if($bug_id != -1) {
            $EQW->ResolveBug($bug_id);
            print "{";
            print "\"status\": 1,";
            print "\"message\": \"\"";
            print "}";
        } else {
            print "{";
            print "\"status\": 0,";
            print "\"message\": \"Invalid bug id.\"";
            print "}";
        }
    } else {
        print "{";
        print "\"status\": 0,";
        print "\"message\": \"Invalid action.\"";
        print "}";
    }

?>